package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.GcgWsjd;
import cn.stylefeng.guns.sys.modular.system.model.params.CwbbParam;
import cn.stylefeng.guns.sys.modular.system.model.params.GcgWsjdParam;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

@Service
public interface GcgWsjdTakeawayService extends IService<GcgWsjd> {
    /**
     * 查询
     *
     * @author liuy
     * @Date 2021-05-18
     */
    LayuiPageInfo TakeawayList(GcgWsjdParam param);

    LayuiPageInfo qyList(GcgWsjdParam param);

    /**
     * 导出
     */
    void ExportList(Integer taStatus, HttpServletResponse response, CwbbParam cwbbParam);

    void listExportQy(Integer taStatus, HttpServletResponse response, CwbbParam cwbbParam);

    /**
     * 完成外卖
     */
    ResponseData update(String ids, Integer taStatus);

    /**
     * 批量下载
     */
    void btnDown(String ids, HttpServletRequest request, HttpServletResponse response) throws Exception;

    /**
     * 通过审核
     */
    int pass(Long id);
    /**
     * 批量通过审核
     */
    int updatePassMany(String id);

    /**
     * 驳回审核
     */
    int rebutL(Long id, String data);

    /**
     * 获取树列表
     */
    List<Map<String, Object>> selectMenuTree();

    void updateDmById(GcgWsjd gcgWsjd);
}
